home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / telecomm / fnordadl / fn132src.zoo / cith / dirlist.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-02  |  486 b   |  21 lines

  1. /*
  2.  * dirlist.h
  3.  */
  4.  
  5. #ifndef _DIRLIST_H
  6. #define _DIRLIST_H
  7.  
  8. struct date_t {            /* subset of struct tm, packed into a short */
  9.     unsigned short mday   : 5;    /* 1..31            */
  10.     unsigned short mon    : 4;    /* 0..11            */
  11.     unsigned short year   : 7;    /* 80..127 (years since 1900)    */
  12. } ;
  13.  
  14. struct dirList {        /* For listing files on disk.        */
  15.     long fd_size;        /* file size.                */
  16.     struct date_t fd_date;    /* date created/modified.        */
  17.     char fd_name[14];        /* file name.                */
  18. };
  19.  
  20. #endif
  21.